package blog.service.impl;

import blog.dao.BaseDao;
import blog.dao.RoleDao;
import blog.pojo.Role;
import blog.service.RoleService;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class RoleServiceImpl implements RoleService {


    @Autowired
    private RoleDao roleDao;

    @Override
    public Role selectById(Integer id) throws Exception {
        return roleDao.selectById(id);
    }
}
